import React from 'react';
import { Row, Col } from 'antd';

export default class ThemeItem extends React.Component {
  render() {
    const { label, visible = true, children } = this.props;

    if (false === visible) return null;

    return (
      <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@cofzq9`}>
        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@iwfyqr`} span={6}>{label}</Col>
        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@2ge1f5`} span={18}>{children}</Col>
      </Row>
    )
  }
}